<!DOCTYPE html>
<html lang="en">

<head>
  <title>My BCIT Project</title>
  <meta name="comp2800 template" content="My 2800 App">

  <!------------------------>
  <!-- Required meta tags -->
  <!------------------------>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">

  <!------------------------------------------>
  <!-- Bootstrap Library CSS JS CDN go here -->
  <!------------------------------------------>
  <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet"
    integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
  <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"
    integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL" crossorigin="anonymous">
    </script>

  <!-------------------------------------------------------->
  <!-- Firebase 8 Library related CSS, JS, JQuery go here -->
  <!-------------------------------------------------------->
  <script src="//cdn.bootcss.com/jquery/3.1.1/jquery.min.js"></script>

  <!-------------------------------------------->
  <!-- Other libraries and styles of your own -->
  <!-------------------------------------------->
  <!-- <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> -->
  <link rel="stylesheet" href="./styles/style.css">

<style>
body{
  background-image:url(./images/mbg2.jpg);
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;

}
                @font-face {
  font-family: 'Font1';
  src: url('./fonts/Conther-2.ttf') format('TrueType'),  /* 支持现代浏览器 */
       
  /* 可以添加更多字体格式，以提高兼容性 */
}
@font-face {
  font-family: 'Font2';
  src: url('./fonts/SankeiCutePopanime-2.ttf') format('TrueType'),  /* 支持现代浏览器 */
       
  /* 可以添加更多字体格式，以提高兼容性 */
}
@font-face {
  font-family: 'Font3';
  src: url('./fonts/Crystal-Regular-2.ttf') format('TrueType'),  /* 支持现代浏览器 */
       
  /* 可以添加更多字体格式，以提高兼容性 */
}
.lyo {
  text-align: center; /* 居中排布链接 */
  margin-top: 8%; /* 上边距50像素 */
}
.lyo a {
  text-decoration: none;
            font-size: 90px; /* 设置字体大小 */
            color: rgb(0, 0, 0); /* 设置初始颜色为灰色 */
            transition: color 0.3s; /* 添加颜色过渡效果 */
            margin-right: 20px; /* 设置链接之间的间距 */
            animation: floatUp 0.5s ease-in-out forwards;
            display: inline-block;
            opacity: 0;
            font-family: 'Font3',sans-serif;;
        }

        /* 将鼠标悬停时的颜色改为黑色 */
        .lyo a:hover {
  color: #000;
        }
        .lyo a:hover ~ a {
  color: #276d27;
}
        @keyframes floatUp {
    0% {
      transform: translateX(-100%);

    }
    75%{
      
    }
    100% {
      transform: translateX(0);
      opacity: 1; /* 显示链接 */
    }
}
a:nth-child(1) {
  animation-delay: 0s;
padding-right: 10px;
}

a:nth-child(2) {
  animation-delay: 0.3s;

}

a:nth-child(3) {
  animation-delay: 0.4s;
}
a:nth-child(4) {
  animation-delay: 1s;
}

</style>
</head>

<body>
  <!------------------------------>
  <!-- Your HTML Layout go here -->
  <!------------------------------>
  <nav id="navbarPlaceholder"></nav>

  <!-- our own navbar goes here -->


  <!-- the body of your page goes here -->
  <!-- stuff -->
  <div class="lyo">
    <a href="./post1.html" onmouseover="highlightTag(this)">Post</a>
    <br/>
    <a href="./history.html" onmouseover="highlightTag(this)">History</a> 
    <br/>
    <a href="./add.html" onmouseover="highlightTag(this)">ADD</a>
    <br/>
   <a href="./contact.html" onmouseover="highlightTag(this)">Contact</a>
    <br/>
  </div>
  
  <script>
    // 处理鼠标悬停事件
    function highlightTag(tag) {
      var tags = document.querySelectorAll('.lyo a'); // 使用 querySelectorAll 获取所有链接元素
      for (var i = 0; i < tags.length; i++) {
        tags[i].style.color = 'grey'; // 将所有链接设置为灰色
      }
      tag.style.color = '#276d27'; // 将当前悬停的链接设置为黑色
    }
  </script>
  
  <!---------------------------------------------->
  <!-- Your own JavaScript functions go here    -->
  <!---------------------------------------------->
  <script src="./scripts/skeleton.js"></script>
  <!-- <script src="./scripts/script.js"></script> -->
  <script src="./scripts/logout.js"></script>
  <!-- <script>
    logout();
</script> -->
</body>

</html>